package c.c.a;

public class l extends b2 {
    public l() {
        super(true, false);
    }

    /* JADX WARNING: Removed duplicated region for block: B:37:0x0096  */
    /* JADX WARNING: Removed duplicated region for block: B:40:0x00a1  */
    /* JADX WARNING: Removed duplicated region for block: B:19:0x004a  */
    /* JADX WARNING: Removed duplicated region for block: B:18:0x0044  */
    /* JADX WARNING: Removed duplicated region for block: B:9:0x0025  */
    /* JADX WARNING: Removed duplicated region for block: B:8:0x001e  */
    /* JADX WARNING: Missing block: B:34:0x0091, code skipped:
            if (r4.toLowerCase().startsWith(r6) != false) goto L_0x0093;
     */
    public boolean b(org.json.JSONObject r8) {
        /*
        r7 = this;
        r0 = new java.lang.StringBuilder;
        r1 = 16;
        r0.<init>(r1);
        r1 = 0;
        r2 = 1;
        r3 = "miui.os.Build";
        r3 = java.lang.Class.forName(r3);	 Catch:{ Exception -> 0x001b }
        r3 = r3.getName();	 Catch:{ Exception -> 0x001b }
        r3 = r3.length();	 Catch:{ Exception -> 0x001b }
        if (r3 <= 0) goto L_0x001b;
    L_0x0019:
        r3 = 1;
        goto L_0x001c;
    L_0x001b:
        r3 = 0;
    L_0x001c:
        if (r3 == 0) goto L_0x0025;
    L_0x001e:
        r1 = "MIUI-";
        r0.append(r1);
        goto L_0x00a9;
    L_0x0025:
        r3 = android.os.Build.DISPLAY;
        r4 = android.text.TextUtils.isEmpty(r3);
        if (r4 != 0) goto L_0x0035;
    L_0x002d:
        r4 = "Flyme";
        r3 = r3.contains(r4);
        if (r3 != 0) goto L_0x003f;
    L_0x0035:
        r3 = android.os.Build.USER;
        r4 = "flyme";
        r3 = r4.equals(r3);
        if (r3 == 0) goto L_0x0041;
    L_0x003f:
        r3 = 1;
        goto L_0x0042;
    L_0x0041:
        r3 = 0;
    L_0x0042:
        if (r3 == 0) goto L_0x004a;
    L_0x0044:
        r1 = "FLYME-";
        r0.append(r1);
        goto L_0x00a9;
    L_0x004a:
        r3 = r7.c();
        r4 = android.text.TextUtils.isEmpty(r3);
        if (r4 == 0) goto L_0x0059;
    L_0x0054:
        r4 = r7.c();
        goto L_0x005a;
    L_0x0059:
        r4 = r3;
    L_0x005a:
        r5 = android.text.TextUtils.isEmpty(r4);
        if (r5 != 0) goto L_0x006d;
    L_0x0060:
        r4 = r4.toLowerCase();
        r5 = "emotionui";
        r4 = r4.startsWith(r5);
        if (r4 == 0) goto L_0x006d;
    L_0x006c:
        goto L_0x0093;
    L_0x006d:
        r4 = android.os.Build.BRAND;
        r5 = android.text.TextUtils.isEmpty(r4);
        r6 = "huawei";
        if (r5 != 0) goto L_0x0081;
    L_0x0077:
        r4 = r4.toLowerCase();
        r4 = r4.startsWith(r6);
        if (r4 != 0) goto L_0x0093;
    L_0x0081:
        r4 = android.os.Build.MANUFACTURER;
        r5 = android.text.TextUtils.isEmpty(r4);
        if (r5 != 0) goto L_0x0094;
    L_0x0089:
        r4 = r4.toLowerCase();
        r4 = r4.startsWith(r6);
        if (r4 == 0) goto L_0x0094;
    L_0x0093:
        r1 = 1;
    L_0x0094:
        if (r1 == 0) goto L_0x009b;
    L_0x0096:
        r1 = "EMUI-";
        r0.append(r1);
    L_0x009b:
        r1 = android.text.TextUtils.isEmpty(r3);
        if (r1 != 0) goto L_0x00a9;
    L_0x00a1:
        r0.append(r3);
        r1 = "-";
        r0.append(r1);
    L_0x00a9:
        r1 = android.os.Build.VERSION.INCREMENTAL;
        r0.append(r1);
        r0 = r0.toString();
        r1 = "rom";
        r8.put(r1, r0);
        return r2;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.a.l.b(org.json.JSONObject):boolean");
    }

    /* JADX WARNING: Removed duplicated region for block: B:15:0x002f A:{SYNTHETIC, Splitter:B:15:0x002f} */
    public final java.lang.String c() {
        /*
        r4 = this;
        r0 = 0;
        r1 = java.lang.Runtime.getRuntime();	 Catch:{ all -> 0x0028 }
        r2 = "getprop ro.build.version.emui";
        r1 = r1.exec(r2);	 Catch:{ all -> 0x0028 }
        r2 = new java.io.BufferedReader;	 Catch:{ all -> 0x0028 }
        r3 = new java.io.InputStreamReader;	 Catch:{ all -> 0x0028 }
        r1 = r1.getInputStream();	 Catch:{ all -> 0x0028 }
        r3.<init>(r1);	 Catch:{ all -> 0x0028 }
        r1 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;
        r2.<init>(r3, r1);	 Catch:{ all -> 0x0028 }
        r0 = r2.readLine();	 Catch:{ all -> 0x0026 }
        r2.close();	 Catch:{ all -> 0x0026 }
        r2.close();	 Catch:{ IOException -> 0x0025 }
    L_0x0025:
        return r0;
    L_0x0026:
        r1 = move-exception;
        goto L_0x002a;
    L_0x0028:
        r1 = move-exception;
        r2 = r0;
    L_0x002a:
        c.c.a.m0.b(r1);	 Catch:{ all -> 0x0033 }
        if (r2 == 0) goto L_0x0032;
    L_0x002f:
        r2.close();	 Catch:{ IOException -> 0x0032 }
    L_0x0032:
        return r0;
    L_0x0033:
        r0 = move-exception;
        if (r2 == 0) goto L_0x0039;
    L_0x0036:
        r2.close();	 Catch:{ IOException -> 0x0039 }
    L_0x0039:
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.a.l.c():java.lang.String");
    }
}
